package com.centit.framework.ip.appversion.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * create by scaffold 2018-09-12 
 * @author codefan@sina.com
 
  App软件版本管理App软件版本管理   
*/
@Entity
@Table(name = "T_APP_VERSION")
public class AppVersion implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * 主键 主键 
	 */
	@Id
	@Column(name = "recId")
	
	private String recid;

	/**
	 * 版本号 版本号 
	 */
	@Column(name = "versionNo")
	@Length(min = 0, max = 20, message = "字段长度不能小于{min}大于{max}")
	private String  versionno;
	/**
	 * 版本值 版本值 
	 */
	@Column(name = "versionValue")
	@Length(min = 0, max = 100, message = "字段长度不能小于{min}大于{max}")
	private String  versionvalue;
	/**
	 * 升级内容 升级内容 
	 */
	@Column(name = "versioncoment")
	private String  versioncoment;
	/**
	 * 文件包主键 文件包主键 
	 */
	@Column(name = "fileId")
	@Length(min = 0, max = 50, message = "字段长度不能小于{min}大于{max}")
	private String  fileid;
	/**
	 * 创建日期 创建日期 
	 */
	@Column(name = "createTime")
	private Date  createtime;
	/**
	 * 创建人 创建人 
	 */
	@Column(name = "creater")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  creater;
	/**
	 * 更新日期 更新日期 
	 */
	@Column(name = "updateTime")
	private Date  updatetime;
	/**
	 * 更新人 更新人 
	 */
	@Column(name = "updater")
	@Length(min = 0, max = 50, message = "字段长度不能小于{min}大于{max}")
	private String  updater;

	// Constructors
	/** default constructor */
	public AppVersion() {
	}
	/** minimal constructor */
	public AppVersion(
		String recid		
		) {
	
	
		this.recid = recid;		
			
	}

/** full constructor */
	public AppVersion(
	 String recid		
	,String  versionno,String  versionvalue,String  versioncoment,String  fileid,Date  createtime,String  creater,Date  updatetime,String  updater) {
	
	
		this.recid = recid;		
	
		this.versionno= versionno;
		this.versionvalue= versionvalue;
		this.versioncoment= versioncoment;
		this.fileid= fileid;
		this.createtime= createtime;
		this.creater= creater;
		this.updatetime= updatetime;
		this.updater= updater;		
	}
	

  
	public String getRecid() {
		return this.recid;
	}

	public void setRecid(String recid) {
		this.recid = recid;
	}
	// Property accessors
  
	public String getVersionno() {
		return this.versionno;
	}
	
	public void setVersionno(String versionno) {
		this.versionno = versionno;
	}
  
	public String getVersionvalue() {
		return this.versionvalue;
	}
	
	public void setVersionvalue(String versionvalue) {
		this.versionvalue = versionvalue;
	}
  
	public String getVersioncoment() {
		return this.versioncoment;
	}
	
	public void setVersioncoment(String versioncoment) {
		this.versioncoment = versioncoment;
	}
  
	public String getFileid() {
		return this.fileid;
	}
	
	public void setFileid(String fileid) {
		this.fileid = fileid;
	}
  
	public Date getCreatetime() {
		return this.createtime;
	}
	
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
  
	public String getCreater() {
		return this.creater;
	}
	
	public void setCreater(String creater) {
		this.creater = creater;
	}
  
	public Date getUpdatetime() {
		return this.updatetime;
	}
	
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
  
	public String getUpdater() {
		return this.updater;
	}
	
	public void setUpdater(String updater) {
		this.updater = updater;
	}



	public AppVersion copy(AppVersion other){
  
		this.setRecid(other.getRecid());
  
		this.versionno= other.getVersionno();  
		this.versionvalue= other.getVersionvalue();  
		this.versioncoment= other.getVersioncoment();  
		this.fileid= other.getFileid();  
		this.createtime= other.getCreatetime();  
		this.creater= other.getCreater();  
		this.updatetime= other.getUpdatetime();  
		this.updater= other.getUpdater();

		return this;
	}
	
	public AppVersion copyNotNullProperty(AppVersion other){
  
	if( other.getRecid() != null){
	this.setRecid(other.getRecid());}
  
		if( other.getVersionno() != null){
		this.versionno= other.getVersionno();}  
		if( other.getVersionvalue() != null){
		this.versionvalue= other.getVersionvalue();}  
		if( other.getVersioncoment() != null){
		this.versioncoment= other.getVersioncoment();}  
		if( other.getFileid() != null){
		this.fileid= other.getFileid();}  
		if( other.getCreatetime() != null){
		this.createtime= other.getCreatetime();}  
		if( other.getCreater() != null){
		this.creater= other.getCreater();}  
		if( other.getUpdatetime() != null){
		this.updatetime= other.getUpdatetime();}  
		if( other.getUpdater() != null){
		this.updater= other.getUpdater();}		

		return this;
	}

	public AppVersion clearProperties(){
  
		this.versionno= null;  
		this.versionvalue= null;  
		this.versioncoment= null;  
		this.fileid= null;  
		this.createtime= null;  
		this.creater= null;  
		this.updatetime= null;  
		this.updater= null;

		return this;
	}
}
